import { Lyric } from "lrc-kit";

export interface LyricChar {
  text: string;
  start?: number;
  end?: number;
}

export interface KaraokeLineProps {
  lyrics: LyricChar[] | Lyric | string;
  currentTime: number;
  fontSize?: number;
  charSpacing?: number;
  baseColor?: string;
  highlightColor?: string;
  lineHeight?: number;
  highlightShadow?: string;
  fontWeight?: number | "bold" | "bolder" | "normal";
  activeFontSize?: number;
  actived?: boolean;
  activeColor?: string;
}

export type KaraokeProps = Omit<KaraokeLineProps, "lyrics"> & {
  assLyric?: string;
  lrcLyric?: string;
  lyric?: string;
  scaleLineColor?: string;
};
